<div ng-include src="'tpl/public/header.html?1'"></div>
<div class="contents">
<!--  <ol class="breadcrumb">
    <li> <a href="#/index/panel">首页</a> </li>
    <li class="active">编辑成立公告</li>
  </ol>-->
  <form class="form-horizontal" role="form" name="form" novalidate ng-submit="save()">
     <div class="form-group" ng-class="{'has-error':form.pName.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span>
        产品名称
      </label>
      <div class="col-sm-5">
      <!--  <input type="date" class="form-control" autocomplete="off" value="" name="pTime" ng-model="productNotice.pTime" required="required" placeholder="起售时间,格式如2014-09-01" ng-pattern="/^\d{4}-\d{2}-\d{2}$/">   -->
      <input type="text" class="form-control" autocomplete="off" value="" name="pName" ng-model="productNotice.pName" required="required" placeholder="发布日期">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.pTime.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span>
        发布日期
      </label>
      <div class="col-sm-5">
      <!--  <input type="date" class="form-control" autocomplete="off" value="" name="pTime" ng-model="productNotice.pTime" required="required" placeholder="起售时间,格式如2014-09-01" ng-pattern="/^\d{4}-\d{2}-\d{2}$/">   -->
      <input type="text" class="form-control" autocomplete="off" value="" name="pTime" ng-model="productNotice.pTime" required="required" placeholder="发布日期">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.pContent.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span>
        成立公告详情
      </label>
      <div class="col-sm-7">
        <div class="ueditor" config="config" ready="ready" ng-model="productNotice.pContent" style="height:300px;" required></div>
      </div>
    </div>
    
    <div class="form-group" >
      <label class="col-sm-2 control-label">&nbsp;</label>
      <div class="col-sm-5">
        <input type="submit" class="btn btn-primary" value="保存" has-auth where="btn" who="PRODUCT_EDIT" owner="{{product.createBy}}"/>
      </div>
    </div>

  </form>
</div>
<div load-script src="'/static/jquery.jUploader-1.01.js?5'" call-back="" charset="utf-8" ></div>